﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<ali:Get ID="Template" Object="Template" Operation="Get(Request.QueryString['Path'])" Validate="True" />
<ali:Get ID="Candidate" Object="InstanceConfig" Operation="GetLanguageSettings()" Lang="PageLang" />
<section data-page="template_edit" data-title="编辑模板" data-lang="<%=ContentLang%>" data-id="<%=Request.QueryString["Path"]%>">
	<dl class="path1">
		<dt><span>您的位置：</span><a href="list.aspx" target="ali-navtab">模板列表</a> → <%=Request.QueryString["Path"]%></dt>
	</dl>
	<form action="" class="post">
		<div class="post-body">
			<div class="ali-tabs" data-event="click">
				<div class="ali-tabs-header">
					<div class="ali-tabs-nav-container">
						<ul>
							<li class="ali-active"><a>编辑</a></li>
							<li><a href="dictionary.aspx?TemplatePath=<%=Request.QueryString["Path"]%>" target="ali-navtab">词典</a></li>
							<li><a href="module.aspx?TemplatePath=<%=Request.QueryString["Path"]%>" target="ali-navtab">模块邦定</a></li>
							<li><a href="pages/list.aspx?TemplatePath=<%=Request.QueryString["Path"]%>" target="ali-navtab">页面列表</a></li>
							<li><a href="pages/add.aspx?TemplatePath=<%=Request.QueryString["Path"]%>" target="ali-navtab">添加页面</a></li>
							<li><a href="script/list.aspx?TemplatePath=<%=Request.QueryString["Path"]%>" target="ali-navtab">脚本列表</a></li>
							<li><a href="script/add.aspx?TemplatePath=<%=Request.QueryString["Path"]%>" target="ali-navtab">添加脚本</a></li>
							<li><a href="menu/list.aspx?TemplatePath=<%=Request.QueryString["Path"]%>" target="ali-navtab">模块菜单</a></li>
							<li><a href="menu/add.aspx?TemplatePath=<%=Request.QueryString["Path"]%>" target="ali-navtab">添加菜单</a></li>
						</ul>				
					</div>
				</div>
				<div class="ali-tabs-body">
					<div class="ali-tabs-panel">
						<table class="post-table margin2">
							<tr>
								<th>全球唯一标示符：</th>
								<td><%=Template[ID]%></td>
							</tr>
							<tr>
								<th>语言：</th>
								<td>
									<ali:List Object="Language" Source="Candidate">
										<ali:Record>
											<%If String.Equals(Ab, Template[Language])%>
												<%=Name%>
											<%EndIf%>
										</ali:Record>
									</ali:List>
								</td>
							</tr>
							<tr>
								<th>名称：</th>
								<td><input type="text" name="Name" value="<%=Template[Name]%>" size="50" maxlength="50" class="ali-input"></td>
							</tr>
							<tr>
								<th>版本：</th>
								<td><input type="text" name="Version" value="<%=Template[Version]%>" size="50" maxlength="50" class="ali-input"></td>
							</tr>
							<tr>
								<th>系统版本：</th>
								<td><input type="text" name="SystemVersion" value="<%=Template[SystemVersion]%>" size="50" maxlength="50" class="ali-input"></td>
							</tr>
							<tr>
								<th>设计师名称：</th>
								<td><input type="text" name="AuthorName" value="<%=Template[AuthorName]%>" size="50" maxlength="50" class="ali-input"></td>
							</tr>
							<tr>
								<th>组织名称：</th>
								<td><input type="text" name="Organization" value="<%=Template[Organization]%>" size="50" maxlength="50" class="ali-input"></td>
							</tr>
							<tr>
								<th>描述：</th>
								<td><textarea name="Description" cols="60" rows="6" class="ali-input"><%=Template[Description]%></textarea></td>
							</tr>
						</table>
					</div>
				</div>
				<div class="ali-tabs-bottom"><b></b></div>
			</div>
		</div>
		<div class="post-footer"><button type="submit" class="ali-button">保 存</button></div>
	</form>
</section>